lsync - Sync Files
2015/01/19 |
Install Lsyncd that is a flexible cross-platform synchronization tool.
Lsyncd copies files or directories timely with Rsync.
|
|
[1] | Install and configure Lsyncd to sync files or directories timely. |
[root@dlp ~]#
vi /etc/lsyncd.conf # add follows to the end
settings{
statusFile = "/tmp/lsyncd.stat", statusInterval = 1, } sync{ default.rsync, # source directory source="/root/work/", # destination Hostname or IP address:(the name set in rsyncd.conf) target="10.0.0.31::backupdir"", # excluding list excludeFrom="/etc/rsync_exclude.lst", } /etc/rc.d/init.d/lsyncd start Starting lsyncd: [ OK ] [root@dlp ~]# chkconfig lsyncd on
|
[2] |
Make sure files and directories are copied timely on destination Host. |